#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<windows.h>
#include<stdlib.h>
#include<assert.h>
unsigned int my_strlen(const char* str)
{
	unsigned int count = 0;
	while (*str++)count++;
	return count;
}

int main() {
	char arr1[] = "hello11";
	printf("%d", my_strlen(arr1));

	return 0;
}

//char* my_strcpy(char* dest,const char* str) {
//    assert(dest && str);
//    char* ret = dest;
//    while (*dest++ = *str++);
//    return ret;
//}
//int main() {
//    char arr1[20] = { 0 };
//    char arr2[] = "hello";
//    char* p = my_strcpy(arr1, arr2);
//    printf("%s", p);
//    return 0;
//}